<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Camp_house_history.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Camp_house_history.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '营房入住历史',
                    name: 'Camp_house_history',
                    url: "/Camp_house_history/",
                    sortName: "id"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'houseId',title:'营房ID',type:'int',width:90,align:'left',sortable:true},
                       {field:'houseItemId',title:'营位ID',type:'int',width:90,align:'left'},
                       {field:'id',title:'id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'orderNumber',title:'订单号',type:'string',width:220,align:'left'},
                       {field:'time',title:'时间',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'type',title:'状态（0入住，1离开）',type:'int',width:90,align:'left'},
                       {field:'uid',title:'guid',type:'string',width:220,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
